import { delay, http } from 'msw';

import { SystemApi } from '@/api/services/systemService';
import { formateSuccessResp } from '../utils';
import {PERMISSION_LIST} from '../assets'

const getMenuTree = http.get(`/api${SystemApi.SysMenuTree}`, async ({ request }) => {
  await delay(2000);
  
  return formateSuccessResp(PERMISSION_LIST);
});
export default [getMenuTree];
